package com.songyang.common;

/**
 * @author yanceysong
 */
public class ErrorMsg {
    /**
     * common
     */
    public static final String UNKNOWN_ERROR = "Known error!";
    public static final String CACHE_FULL_EXCEPTION = "Cache is full!";
    public static final String FILE_EXISTS_EXCEPTION = "File already exists!";
    public static final String FILE_NOT_EXISTS_EXCEPTION = "File does not exists!";
    public static final String FILE_CANNOT_RW_EXCEPTION = "File cannot read or write!";
    public static final String FILE_CREATE_FAILED_EXCEPTION = "File create failed!";
    public static final String CREATE_TM_FAILED = "create TransactionManager failed!";
    public static final String UNKNOWN_TRANSACTION_ISOLATION_LEVEL = "unknown transaction isolation level!";
    public static final String SINGLETON_REFLEX_EXCEPTION = "Do not break the singleton pattern with reflection!";
    public static final String PARAM_ILLEGAL_EXCEPTION = "Param illegal!";
    public static final String CONFIG_PARAM_ILLEGAL = "Config param illegal!";
    public static final String ILLEGAL_ENCODER_TYPE = "Illegal encoder type!";
    /**
     * dm
     */
    public static final String BAD_LOG_FILE_EXCEPTION = "Bad log file!";
    public static final String MEM_TOO_SMALL_EXCEPTION = "Memory too small!";
    public static final String DATA_TOO_LARGE_EXCEPTION = "Data too large!";
    public static final String DATABASE_BUSY_EXCEPTION = "Database is busy!";
    public static final String CREATE_PAGE_CACHE_FAILED = "Create pageCache failed!";


    /**
     * tm
     */
    public static final String BADXID_FILE_EXCEPTION = "Bad XID file!";

    /**
     * vm
     */
    public static final String DEAD_LOCK_EXCEPTION = "Databased has deadlock!";
    public static final String CONCURRENT_UPDATE_EXCEPTION = "Concurrent update issue!";
    public static final String NULL_ENTRY_EXCEPTION = "Null entry!";

    /**
     * tbm
     */
    public static final String INVALID_FIELD_EXCEPTION = "Invalid field type!";
    public static final String FIELD_NOT_FOUND_EXCEPTION = "Field not found!";
    public static final String FIELD_NOT_INDEXED_EXCEPTION = "Field not indexed!";
    public static final String INVALID_LOG_OP_EXCEPTION = "Invalid logic operation!";
    public static final String INVALID_VALUES_EXCEPTION = "Invalid values!";
    public static final String DUPLICATED_TABLE_EXCEPTION = "Duplicated table!";
    public static final String TABLE_NOT_FOUND_EXCEPTION = "Table not found!";

    /**
     * parser
     */
    public static final String INVALID_COMMAND_EXCEPTION = "Invalid command!";
    public static final String TABLE_NO_INDEX_EXCEPTION = "Table has no index!";

    /**
     * transport
     */
    public static final String INVALID_PKG_DATA_EXCEPTION = "Invalid package data!";

    /**
     * server
     */
    public static final String NESTED_TRANSACTION_EXCEPTION = "Nested transaction not supported!";
    public static final String NO_TRANSACTION_EXCEPTION = "Not in transaction!";

    /**
     * launcher
     */
    public static final String INVALID_MEM_EXCEPTION = "Invalid memory!";
}
